package com.qf.service;

import com.qf.dao.UserMapper;
import com.qf.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 千锋健哥
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        List<User> list = userMapper.findUserAll();
        return list;
    }

    @Override
    public void insertUser(User user) {
        userMapper.insert(user);
    }

}
